package site.timers.game;

public class LightningSkill extends Skill {
    private int damage;
    private int chainCount;

    public LightningSkill() {
        super("连锁闪电", 5, 2, 25);
        this.damage = 12;
        this.chainCount = 3;
    }

    @Override
    public void execute(Character caster, Character target) {
        if (caster.getHealth() > 0) {
            // 连锁伤害逻辑
            for (int i = 0; i < chainCount; i++) {
                target.takeMagicDamage(damage);
            }
            currentCooldown = cooldown;
        }
    }
}